<%-- 
    Document   : listsupplierpersion
    Created on : Jul 9, 2012, 8:20:53 AM
    Author     : VANANH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>
        <style type="text/css">
            #ui-datepicker-div
            {
                z-index: 9999999;
            }
            .record_row_left a:hover{color:black}

        </style>

    </head>

    <body>
        <f:view>
            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
            <a4j:form >
                <div class="content_detail">
                    <div class="list_item_user">
                        <div class="item_content" style="display: block">
                            <div class="infomation_form">
                                <div class="card_add">
                                    <h:outputLink   rendered="#{loginSession.right.SUP_PER_CRE}" value="supplierInput.jsp?action=addEmp&table=A&fn600=4&id=#{CustomerBean.fk100}&page=#{CustomerBean.pagereload}&height=250px&width=400px" styleClass="fancybox">
                                            <img src="../images/add_tab.png" alt="add" title="add" /> <h:outputText value="#{locale.persioncontact}"/>
                                        </h:outputLink>

                                </div>
                                <div style="float:left ; width:100%; min-height:110px;">
                                    <div style="float:left; width:100%; min-height:100px; height:auto;">


                                                                 <rich:dataTable value="#{CustomerBean.listpersion}" var="item"
                                                                                                    rendered="#{!empty CustomerBean.listpersion}"
                                                                                                    rows="50"
                                                                                                    onRowMouseOver="this.style.backgroundColor='#DEE1E2'"
                                                                                                    onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
                                                                                                    style=" margin-left:10px;width:98%"
                                                                                                    width="94%" rowKeyVar="index"
                                                                                                    id="table" >

                                                                                         <rich:column style="width:25px;">
                                                                                            <f:facet name="header">
                                                                                                <h:outputText value="#{locale.num1}" />
                                                                                            </f:facet>
                                                                                            <div style="width:25px; text-align: center">
                                                                                                <h:outputText value="#{index+1}" />

                                                                                            </div>
                                                                                        </rich:column>

                                                                                        <rich:column style="width:200px;" >
                                                                                            <f:facet name="header">
                                                                                                <h:outputText value="#{locale.frist_lastname}" />
                                                                                            </f:facet>

                                                                                            <div style="width:200px; text-align: left">
                                                                                               <a href='customer.jsp?pnPN100=<h:outputText value="#{item.pn100}"/>&type=<h:outputText value="#{item.ni104}"/>'> <h:outputText style="margin-left:20px;" value="#{item.nv102} #{item.nv103}"  /></a>
                                                                                            </div>
                                                                                        </rich:column >
                                                                                        <rich:column   style="width:auto" >
                                                                                            <f:facet name="header">
                                                                                                <h:outputText value="#{locale.notice1}" />
                                                                                            </f:facet>

                                                                                            <div style="width:atuo; text-align: center">
                                                                                                <h:outputText value="&nbsp;"  escape="false"/>
                                                                                            </div>
                                                                                        </rich:column >

                                                                                        <rich:column style="width:35px;">
                                                                                            <f:facet name="header">
                                                                                                <h:outputText value="" />
                                                                                            </f:facet>
                                                                                                <h:outputLink  rendered="#{loginSession.right.SUP_PER_MOD}"  value="supplierInput.jsp?action=editEmp&pn100=#{item.pn100}&type=#{item.ni104}&page=#{CustomerBean.pagereload}&height=300px&width=400px" styleClass="fancybox">
                                                                                                    <img title="edit" alt="edit" src="../images/edit.png">
                                                                                                </h:outputLink>
                                                                                                <h:outputLink  rendered="#{loginSession.right.SUP_PER_DEL}"  value="delete.jsp?id=#{item.pn100}&pn100C=#{CustomerBean.fk100}&flag=K100K&height=150px&width=300px" styleClass="fancybox">
                                                                                                    <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                                                                </h:outputLink>
                                                                                        </rich:column>
                                                               </rich:dataTable>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </a4j:form>
        </f:view>
    </body>
</html>
